package com.zy.explore.design.patterns.observer;

/**
 * 手机短信观察者
 *
 * @author ZY
 * @date 2021/11/02
 */
public class MobileNoObserver implements Observer{
    /**
     * 做相应的事件处理
     */
    @Override
    public void doEvent(int state) {
        int sendMobileMsgState = 4;
        if (state == sendMobileMsgState) {
            System.out.println("被观察者状态为：" + state + " 发送手机短信");
        }
    }
}
